<?php
/* 
 * Init the database for winery order form
 */

// simpleViewerGallery tables
$this->createTable('wineryOrderFormCat', 'id int(11) NOT NULL auto_increment, wofcpos int(11) NOT NULL, wofcname varchar(255), PRIMARY KEY (id)');
$this->createTable('wineryOrderFormEntry', 'id int(11) NOT NULL auto_increment, wofcat_id INT NOT NULL, wofevisible enum(\'Y\',\'N\') NOT NULL DEFAULT \'N\', wofeno varchar(255) NOT NULL, wofeproduct varchar(255), wofedescr text, wofeyear char(4), wofeliter decimal(10,3), wofeprice decimal(10,2), wofeimg longblob, wofeimg_size varchar(255) DEFAULT NULL, wofeimg_filename varchar(255) DEFAULT NULL, wofeimg_type varchar(255) DEFAULT NULL, PRIMARY KEY(id), KEY wofcat_id (wofcat_id)', true);

?>
